﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.PotentialCustomerCaseManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch" >
    <div>
    <table border="0" cellpadding="0" cellspacing="0" id="tTitle" >
        <tr>
            <td class="left">
                <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
            </td>
            <td class="middle">
                <div class="pagetitle">
                    <div>
                        <asp:Label ID="lblTitle" runat="server" Text="潜在客户列表"></asp:Label></div>
                </div>
            </td>
            <td class="right">
                <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
            </td>
        </tr>
    </table>
    <div id="divMain">
        <div style="width: 100%">
            <div class="listdiv">
                <table border="0" cellpadding="0" cellspacing="0" class="search" align="center" >
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                客户姓名:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCUSTOMERNAME" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                来电号码:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCALLER" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                创建时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                创建人:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCREATEPEOPLE" runat="server" MaxLength="20" CssClass="txt"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                状态:</div>
                        </td>
                        <td class="content">
                            <asp:DropDownList runat="server" ID="ddlSTATUS" CssClass="ddl">
                            </asp:DropDownList>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                服务商:
                            </div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtSTATIONNAME" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                整机编号:
                            </div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtVINCODE" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                发动机编号:
                            </div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtENGINENUMBER" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                工单编号:
                            </div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCASEID" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                回访时间:
                            </div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtVISITTIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtVISITTIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                修改时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtLASTMODIFYTIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtLASTMODIFYTIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                最后修改人:
                            </div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtLASTMODIFYPEOPLE" runat="server" MaxLength="20" CssClass="txt"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                导出记录:</div>
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap;">
                                <asp:TextBox ID="txtRecordBegin" runat="server" MaxLength="20" CssClass="small"></asp:TextBox>-<asp:TextBox
                                    ID="txtRecordEnd" runat="server" MaxLength="20" CssClass="small"></asp:TextBox>（条）
                            </div>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                单次导出数:</div>
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap;">
                                <asp:Label ID="lblExportMaxRows" runat="server"></asp:Label>
                            </div>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                            </div>
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap;">
                            </div>
                        </td>
                        <td class="title">
                            &nbsp;
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap; width: 300px;">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                    OnClick="btnSearch_Click" />
                                <asp:Button ID="btnExportExcel" runat="server" Text="导 出" CommandName="Export" CssClass="btn title_cx"
                                    OnClick="btnExportExcel_Click" />
                                <input type="button" value="清 空" class="btn" id="btnClear" onclick="return clearSearchForm();" />
                            </div>
                        </td>
                    </tr>
                </table>
                <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                    OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting"
                    AllowPaging="True" AllowSorting="True" SortExpressionValue="CASEID" SortDirectionValue="DESC">
                    <Columns>
                        <asp:TemplateField HeaderText="工单编号" SortExpression="CASEID">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlModifyCaseID" runat="server" NavigateUrl='<%# Eval("CASEID", ModifyUrl) %>'
                                    Text='<%# Bind("CASEID") %>'>详细</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CALLER" HeaderText="来电号码" SortExpression="CALLER" />
                        <asp:BoundField DataField="CALLED" HeaderText="被叫号码" SortExpression="CALLED"  Visible="false" />
                        <asp:BoundField DataField="CALLID" HeaderText="主叫标识" SortExpression="CALLID"  Visible="false" />
                        <asp:BoundField DataField="RECORDCODE" HeaderText="录音代码" SortExpression="RECORDCODE"  Visible="false" />
                        <asp:BoundField DataField="CALLTYPE" HeaderText="来电类型" SortExpression="CALLTYPE" Visible="false"  />
                        <asp:BoundField DataField="CUSTOMERID" HeaderText="客户编号" SortExpression="CUSTOMERID"  Visible="false" />
                        <asp:BoundField DataField="CUSTOMERCODE" HeaderText="客户代码" SortExpression="CUSTOMERCODE"  Visible="false" />
                        <asp:BoundField DataField="CUSTOMERNAME" HeaderText="客户姓名" SortExpression="CUSTOMERNAME" />
                        <asp:BoundField DataField="FIRSTCONTACTTEL" HeaderText="首选联系号码" SortExpression="FIRSTCONTACTTEL" />
                        <asp:BoundField DataField="ADDRESS" HeaderText="详细地址" SortExpression="ADDRESS"  Visible="false" />
                        <asp:BoundField DataField="COUNTRY" HeaderText="国家" SortExpression="COUNTRY"  Visible="false" />
                        <asp:BoundField DataField="PROVINCE" HeaderText="省份" SortExpression="PROVINCE"  Visible="false" />
                        <asp:BoundField DataField="PREFECTURECITY" HeaderText="地级市" SortExpression="PREFECTURECITY"  Visible="false" />
                        <asp:BoundField DataField="CITY" HeaderText="区/县/市" SortExpression="CITY"  Visible="false" />
                        <asp:BoundField DataField="VILLAGETOWN" HeaderText="乡/镇/街道" SortExpression="VILLAGETOWN" Visible="false"  />
                        <asp:BoundField DataField="VILLAGE" HeaderText="村" SortExpression="VILLAGE"  Visible="false" />
                        <asp:BoundField DataField="GROUPTEAM" HeaderText="组/队" SortExpression="GROUPTEAM"  Visible="false"  />
                        <asp:BoundField DataField="CONSULTINGTYPE" HeaderText="咨询类型" SortExpression="CONSULTINGTYPE" />
                        <asp:BoundField DataField="VINCODE" HeaderText="整机编号" SortExpression="VINCODE"  Visible="false" />
                        <asp:BoundField DataField="BRAND" HeaderText="品牌" SortExpression="BRAND"  Visible="false" />
                        <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型" SortExpression="VEHICLETYPE"  Visible="false" />
                        <asp:BoundField DataField="PRODUCTCODE" HeaderText="产品代码" SortExpression="PRODUCTCODE"  Visible="false" />
                        <asp:BoundField DataField="SERIES" HeaderText="系列" SortExpression="SERIES"  Visible="false" />
                        <asp:BoundField DataField="MODELS" HeaderText="机型" SortExpression="MODELS" />
                        <asp:BoundField DataField="ENGINEMODEL" HeaderText="发动机型号" SortExpression="ENGINEMODEL"  Visible="false" />
                        <asp:BoundField DataField="ENGINEMANUFACTURERS" HeaderText="发动机厂家" SortExpression="ENGINEMANUFACTURERS" Visible="false"  />
                        <asp:BoundField DataField="ENGINENUMBER" HeaderText="发动机编号" SortExpression="ENGINENUMBER"  Visible="false" />
                        <asp:BoundField DataField="CONSULTINGCONTENT" HeaderText="咨询内容" SortExpression="CONSULTINGCONTENT"  Visible="false" />
                        <asp:BoundField DataField="STATUS" HeaderText="处理状态" SortExpression="STATUS" />
                        <asp:BoundField DataField="HANDLING" HeaderText="处理方式" SortExpression="HANDLING"  Visible="false" />
                        <asp:BoundField DataField="RESULTS" HeaderText="处理结果" SortExpression="RESULTS"  Visible="false" />
                        <asp:BoundField DataField="REMARK" HeaderText="备注" SortExpression="REMARK"  Visible="false" />
                        <asp:BoundField DataField="TODOREMINDERTIME" HeaderText="待办提醒时间" SortExpression="TODOREMINDERTIME"  Visible="false" />
                        <asp:BoundField DataField="REMINDERTIME" HeaderText="待办提醒时间" SortExpression="REMINDERTIME"  Visible="false" />
                        <asp:BoundField DataField="REMINDERNUMBER" HeaderText="提醒次数" SortExpression="REMINDERNUMBER"  Visible="false" />
                        <asp:BoundField DataField="CREATETIME" HeaderText="创建时间" SortExpression="CREATETIME" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                        <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号" SortExpression="CREATEPEOPLEID"  Visible="false" />
                        <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人" SortExpression="CREATEPEOPLE" />
                        <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号" SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
                        <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人" SortExpression="LASTMODIFYPEOPLE" />
                        <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间" SortExpression="LASTMODIFYTIME"  DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                        <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号" SortExpression="BUSINESSDIVISIONID"  Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称" SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码" SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
                        <asp:BoundField DataField="DEALERCODE" HeaderText="经销商代码" SortExpression="DEALERCODE"  Visible="false" />
                        <asp:BoundField DataField="DEALERNAME" HeaderText="经销商名称" SortExpression="DEALERNAME"  Visible="false" />
                        <asp:BoundField DataField="STATIONCODE" HeaderText="服务商代码" SortExpression="STATIONCODE"  Visible="false" />
                        <asp:BoundField DataField="STATIONNAME" HeaderText="服务商名称" SortExpression="STATIONNAME"  Visible="false" />
                        <asp:BoundField DataField="OWNERSMOBILEPHONE" HeaderText="车主手机" SortExpression="OWNERSMOBILEPHONE" Visible="false"  />
                        <asp:BoundField DataField="OWNERSOFFICEPHONE" HeaderText="车主办公电话" SortExpression="OWNERSOFFICEPHONE"  Visible="false" />
                        <asp:BoundField DataField="OWNERSHOMEPHONE" HeaderText="车主家庭电话" SortExpression="OWNERSHOMEPHONE"  Visible="false" />
                        <asp:BoundField DataField="OWNERSPEOPLE" HeaderText="车主姓名" SortExpression="OWNERSPEOPLE"  Visible="false" />
                        <asp:BoundField DataField="OWNERSPEOPLECODE" HeaderText="车主代码" SortExpression="OWNERSPEOPLECODE"  Visible="false" />
                        <asp:BoundField DataField="CUSTOMERBASE" HeaderText="客户群" SortExpression="CUSTOMERBASE"  Visible="false" />
                        <asp:BoundField DataField="CUSTOMERTYPE" HeaderText="客户类型" SortExpression="CUSTOMERTYPE"  Visible="false" />
                        <asp:BoundField DataField="CUSTOMERLEVEL" HeaderText="客户等级" SortExpression="CUSTOMERLEVEL"  Visible="false" />
                        <asp:BoundField DataField="BIGCUSTOMERTYPE" HeaderText="大客户类型" SortExpression="BIGCUSTOMERTYPE"  Visible="false" />
                        <asp:BoundField DataField="CREATEUSERTYPE" HeaderText="创建操作员类型" SortExpression="CREATEUSERTYPE"  Visible="false" />
                        <asp:BoundField DataField="CREATEDEPARTMENTID" HeaderText="创建部门编号" SortExpression="CREATEDEPARTMENTID"  Visible="false" />
                        <asp:BoundField DataField="CREATEDEPARTMENTNAME" HeaderText="创建部门名称" SortExpression="CREATEDEPARTMENTNAME"  Visible="false" />
                        <asp:BoundField DataField="VEHICLEMARKCODE" HeaderText="车辆市场部代码" SortExpression="VEHICLEMARKCODE"  Visible="false" />
                        <asp:BoundField DataField="VEHICLEMARKNAME" HeaderText="车辆市场部名称" SortExpression="VEHICLEMARKNAME"  Visible="false" />
                        <asp:BoundField DataField="FOLLOWUPTIME" HeaderText="跟进时间" SortExpression="FOLLOWUPTIME"  Visible="false" />
                        <asp:BoundField DataField="FOLLOWUPCONTENT" HeaderText="跟进内容" SortExpression="FOLLOWUPCONTENT"  Visible="false" />
                        <asp:BoundField DataField="VISITTIME" HeaderText="回访时间" SortExpression="VISITTIME"  Visible="false" />
                        <asp:BoundField DataField="VISITREMARK" HeaderText="回访备注" SortExpression="VISITREMARK"  Visible="false" />
                        <asp:BoundField DataField="ISVISITCOMPLATE" HeaderText="是否回访成功" SortExpression="ISVISITCOMPLATE"  Visible="false" />
                        <asp:BoundField DataField="USERRECOMMENDED" HeaderText="用户建议" SortExpression="USERRECOMMENDED"  Visible="false" />
                        <asp:BoundField DataField="ISINITIATIVECONTACT" HeaderText="经销商是否主动联系" SortExpression="ISINITIATIVECONTACT"  Visible="false" />
                        <asp:BoundField DataField="ISUNDERSTANDVEHICLEINFO" HeaderText="是否对车辆基本信息了解" SortExpression="ISUNDERSTANDVEHICLEINFO"  Visible="false" />
                        <asp:BoundField DataField="ISHASPURCHASE" HeaderText="是否已购机" SortExpression="ISHASPURCHASE"  Visible="false" />
                        <asp:BoundField DataField="SOURCE" HeaderText="客户购车信息来源" SortExpression="SOURCE"  Visible="false" />
                        <asp:BoundField DataField="CAUSEANALYSIS" HeaderText="（已购车或已决定购车、犹豫中、购买其它品牌）客户原因分析"
                            SortExpression="CAUSEANALYSIS"  Visible="false" />
                        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                            <ItemTemplate>
                                <div style="white-space: nowrap;">
                                    <asp:HyperLink ID="hlModify" runat="server" NavigateUrl='<%# Eval("CASEID", ModifyUrl) %>'>详细</asp:HyperLink>
                                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False"
                                        OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="row2" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                </dp:WebGridView>
            </div>
            <br />
        </div>
    </div>
    </div>
    </form>
</body>
</html>
